const template = `
    <div class="header-nav">
        <nav>
            <router-link to="/" @click.native="close(true)">点单</router-link>
            <router-link to="/orders" @click.native="close(false)">评价</router-link>
            <router-link to="/user" @click.native="close(false)">我的</router-link>
        </nav>
    </div>
`

export default {
    template,
    props: {
        homeShow: {
            type:Boolean,
            default:true
        }
    },
    methods:{
        close(flag){
            console.log(flag);
            this.$emit("input", flag);
        }
    }
}